package space.yangmin.baidu.downloader.util;

import cn.hutool.cache.CacheUtil;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @Description TODO
 * @Version 1.0.0
 * @Date 2024/8/5/0005 16:22
 * @Author Administrator
 */
public class CachePoolUtil {

    private static final Map<String,Object> cache;

    static {
        cache = new ConcurrentHashMap<>();
    }

    public static Object get(String key){
        return cache.get(key);
    }

    public static void put(String key,Object value){
        cache.put(key,value);
    }

}
